package com.liang.dao;

import com.liang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public List<User> findAll();
    public User findById(@Param("id")Integer id);
    public void addUser(User user);
    public void updateUser(User user);
    public void deleteUser(Integer id);
    public List<User> findByUserName1(String username);
    public List<User> findByUserName2(String username);
    public List<User> findByUserName3(String username);
    public Integer getTotalCount();
    public List<User> findByPageData(Map<String,Integer> hashMap);

}
